def login(username="", password="", codes=""):
    if username == "admin" and password == 123456 and codes == 8888:
        print("登录成功")
    elif username == "admin" and password != 123456 and codes == 8888:
        print("密码错误")
    elif username == "admin" and password == 123456 and codes != 8888:
        print("验证码错误")


if __name__ == '__main__':
    login("admin", 123456, 8888)
from service.login_service import login

login("admin", 123456, 8888)
login("admin", 123456)
login("admin", codes=8888)
